<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<div class="items-display-flex flex-row" id="footertop">
			<img class="logo" src="../img/index/logo.png" onclick="toindex()"/>
			<div class="menu-logo-lab" onclick="showCityChoosePanel()">
				{{curcity.region_name}}
				<span class="iconfont icon-xiaotuziCduan_"></span>
			</div>
			<div class="menu-items">
				<div class="items-display-flex flex-row">
					<div id="page1" class="item" onclick="gotoPage(1)">首页</div>
					<div id="page2" class="item" onclick="gotoPage(2)">新房</div>
					<div id='page3' class="item" onclick="gotoPage(3)">海外</div>
					<div id="page4" class="item" onclick="gotoPage(4)">租房</div>
					<div id="page5" class="item" onclick="gotoPage(5)">加盟</div>
				</div>
			</div>
		</div>
		<div class="search-content items-display-flex flex-row">
			<div class="inputtxt" >
				<input placeholder="请输入区域，楼盘名称开始找房" id="housename"/>
			</div>
			<div class="search-btn" onclick="doKeyWordSearch()">
				<img src="../img/index/search-white.png" />
			</div>
		</div>
	</body>
	
	<script>
		var footCnt = new Vue({
			el:'#footertop',
			data:{
				curcity:{region_name:'上海'}
			}
		});
		
		var curRegion = getCookie('kdcurcityName');
		if(curRegion){
			footCnt.curcity.region_name = curRegion;
		}
		
		function doKeyWordSearch() {
			var sname = document.getElementById('housename').value;
			window.location.href = "qgxf.html?name="+sname+"&type=0&room=0&harea=0&price=0&region=0";
		}
		
		function toindex(){
			window.location.href = "index.html";
		}
	</script>
</html>